import { createRouter, createWebHashHistory } from 'vue-router'


const routes = [
  {
    path: '/home',
    name: '首页',
    component: () => import('../components/HomePage.vue')
  },
  {
    path: '/userCenter',
    name: '个人中心',
    component: () => import('../views/userCenter/index.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/Login.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../views/Register.vue')
  },
  {
    path: '/sys/log',
    name: 'LogManagement',
    component: () => import('@/views/sys/log/index.vue'),
  },
  {
    path: '/resetpassword',
    name: '重置密码',
    component: () => import('../views/ResetPassword.vue')
  },
  {
    path: '/theme',
    name: '主题',
    component: () => import('../components/HomePage.vue'),
    children:[
      
    ]
  },
    {
    path: '/companionship',
    name: '陪伴学习',
    component: () => import('../views/front/Companionship.vue') 
  },
  {
    path: '/ask',
    name: '睿记精解',
    component: () => import('../views/front/WisdomRecordExplanation.vue')
  },
  {
    path: '/talk',
    name: '心聆秘语',
    component: () => import('../views/front/Emotion.vue')
  },
  {
    path: '/note',
    name: '笔记',
    component: () => import('../views/front/notebook.vue')
  },
  {
    path: '/test',
    name: '2笔记',
    component: () => import('../views/front/test.vue')
  },
  {
    path: '/test-topnav',
    name: 'TopNavBar测试',
    component: () => import('../views/testpage/TopNavBarTest.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
